package cn.iocoder.yudao.module.xkfz.mapper.excel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.xkfz.domain.excel.entity.LeadMulticenterProjects;
import cn.iocoder.yudao.module.xkfz.domain.excel.entity.Standard;
import cn.iocoder.yudao.module.xkfz.domain.excel.po.LeadMulticenterProjectsPo;
import cn.iocoder.yudao.module.xkfz.domain.excel.po.StandardPo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Arrays;

@Mapper
@Repository
public interface LeadMulticenterProjectsMapper extends BaseMapperX<LeadMulticenterProjects> {


    default PageResult<LeadMulticenterProjects> selectPage (LeadMulticenterProjectsPo reqPo) {
        return selectPage(reqPo, new LambdaQueryWrapperX<LeadMulticenterProjects>()
                .likeIfPresent(LeadMulticenterProjects::getPeriodTime, reqPo.getPeriodTime())
                .eqIfPresent(LeadMulticenterProjects::getDeptName, reqPo.getDeptName())
                .orderByDesc(Arrays.asList(LeadMulticenterProjects::getUpdateTime)));
            }

}
